package model

import "jtvss/pkg/orm"

// NoticeOpt
type NoticeOpt struct {
	ID         uint   `json:"id" gorm:"primary_key"`
	Title      string `json:"title"`
	Content    string `json:"content"`
	Sender     string `json:"sender"`
	SenderName string `json:"senderName"`
	Accept     string `json:"accept"`
	AcceptName string `json:"acceptName"`
	Type       string `json:"type"`
}

// Notice
type Notice struct {
	NoticeOpt
	orm.CreatedAt
}

func (Notice) TableName() string {
	return "t_system_notice"
}
